package gov.pbc.nn.core.bdf;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import com.bstek.bdf2.core.model.Url;

@Component
public class PbcCoreMenuGenerator extends AbstractMenuGenerator {

	@Override
	public List<Url> getUrls(String rootId) {
		List<Url> urls = new ArrayList<Url>();

		Url secondUrl = this.createUrl("系统默认基本信息维护","url(skin>common/icons.gif) -100px -20px", rootId, 1, null);
		urls.add(secondUrl);
		Url childUrl = this.createUrl("菜单维护","url(skin>common/icons.gif) -62px -141px", secondUrl.getId(),1, "bdf2.core.view.url.UrlMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("用户维护","url(skin>common/icons.gif) -142px -101px", secondUrl.getId(),	2, "gov.pbc.nn.core.bdf.view.UserMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("USBKey维护",	"url(skin>common/icons.gif) -142px -101px", secondUrl.getId(),3, "gov.pbc.nn.core.usbkey.Usbkey.d");
		urls.add(childUrl);
		childUrl = this.createUrl("部门维护","url(skin>common/icons.gif) -42px -41px", secondUrl.getId(), 4,	"gov.pbc.nn.core.bdf.view.DeptMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("岗位维护","url(skin>common/icons.gif) -262px -41px", secondUrl.getId(),5, "gov.pbc.nn.core.bdf.position.PositionMaintain.d");
		urls.add(childUrl);
//		childUrl = this.createUrl("消息模版维护","url(skin>common/icons.gif) -302px -61px", secondUrl.getId(),5, "bdf2.core.view.messagetemplate.MessageTemplateMaintain.d");
//		urls.add(childUrl);

		secondUrl = this.createUrl("权限管理","url(skin>common/icons.gif) -42px -41px", rootId, 2, null);
		urls.add(secondUrl);
		childUrl = this.createUrl("角色维护","url(skin>common/icons.gif) -240px -80px", secondUrl.getId(),1, "gov.pbc.nn.core.bdf.role.RoleMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("URL权限维护",	"url(skin>common/icons.gif) -262px -100px", secondUrl.getId(),	2, "bdf2.core.view.role.url.RoleUrlMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("组件权限维护","url(skin>common/icons.gif) -181px -41px", secondUrl.getId(),3, "bdf2.core.view.role.component.RoleComponentMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("角色成员维护","url(skin>common/icons.gif) -102px -21px", secondUrl.getId(),4, "gov.pbc.nn.core.bdf.role.RoleMemberMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("群组维护","url(skin>common/icons.gif) -101px -121px", secondUrl.getId(),5, "gov.pbc.nn.core.bdf.group.GroupMaintain.d");
		urls.add(childUrl);
		Url thirdUrl =  this.createUrl("权限下放","url(skin>common/icons.gif) -101px -121px", secondUrl.getId(),6, null);
		urls.add(thirdUrl);
		childUrl = this.createUrl("下放资源管理","url(skin>common/icons.gif) -262px -41px", thirdUrl.getId(),1, "gov.pbc.nn.core.bdf.authoritydelegation.view.allocation.AllocationMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("角色资源管理","url(skin>common/icons.gif) -242px -141px", thirdUrl.getId(),2, "gov.pbc.nn.core.bdf.authoritydelegation.view.role.url.RoleUrlMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("角色成员管理","url(skin>common/icons.gif) -262px -141px", thirdUrl.getId(),3, "gov.pbc.nn.core.bdf.authoritydelegation.view.role.member.RoleMemberMaintain.d");
		urls.add(childUrl);

		
		secondUrl=this.createUrl("任务调度", "url(skin>common/icons.gif) -122px -101px", rootId, 3,null);
		urls.add(secondUrl);
		childUrl=this.createUrl("Job定义", "url(skin>common/icons.gif) -122px -41px", secondUrl.getId(), 1,"bdf2.job.view.job.JobMaintain.d");
		urls.add(childUrl);
		childUrl=this.createUrl("调度服务监控", "url(skin>common/icons.gif) -222px -81px", secondUrl.getId(), 3,"bdf2.job.view.analysis.SchedulerAnalysis.d");
		urls.add(childUrl);
		childUrl=this.createUrl("节假日设定", "url(skin>common/icons.gif) -102px -41px", secondUrl.getId(), 2,"bdf2.job.view.calendar.CalendarMaintain.d");
		urls.add(childUrl);
		
		
		secondUrl = this.createUrl("Excel导入", "dorado/res/com/bstek/bdf2/importexcel/view/icons/page_excel.png", rootId, 4, null);
		urls.add(secondUrl);
		childUrl = this.createUrl("导入模板定义", "url(skin>common/icons.gif) -102px -21px", secondUrl.getId(), 1, "bdf2.importexcel.view.ExcelMaintain.d");
		urls.add(childUrl);
		childUrl = this.createUrl("导入演示", "dorado/res/com/bstek/bdf2/importexcel/view/icons/page_excel.png", secondUrl.getId(), 2, "bdf2.importexcel.view.ImportExcel.d");
		urls.add(childUrl);
		return urls;
	}
	
}
